<template>
	<view>
	<material-List ref="parts" :jyRepair="true"></material-List>
	</view>
</template>

<script>
	import materialList from '@/components/materialList/materialList.vue';
	export default {
		components:{
			materialList
		},
		data() {
			return {
			}
		},
		/**搜索提交*/
		onNavigationBarSearchInputConfirmed(e){
			this.$refs.parts.$emit('searchMethod',e.text)
		},
		/**点击新增备件*/
		onNavigationBarButtonTap(e){
			uni.navigateTo({
				url:"/pages/addMaterial/addMaterial?type=add"
			})
		},
		methods: {
			/**上拉刷新*/
			onReachBottom(){
				this.$refs.parts.pullUpRefresh();
			},
			
		}
	}
</script>

<style>

</style>
